/**
 * @description 平台管理员账号数据模型
 * @author 韩
 */
const dayjs = require("dayjs")
const mongoose = require("../db/db")
const { Schema } = require("mongoose")
const adminSchema = mongoose.Schema({

    createDate: {
        type: Number,
        default: dayjs()
    },

    userId: {
        type: String,
        require: true
    },
    userName: {
        type: String,
    },
    passWord: {
        type: String,
        require: true
    },
    imgUrl: {
        type: String
    },
    status: {
        type: Number,
        default: 1
    },
}, {
    versionKey: false //禁用版本号
})

const ADMIN_USER = mongoose.model("admin_user", adminSchema)
module.exports = ADMIN_USER

